<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- qwwled.cpp -->
<head>
  <title>Qt 1.0: QwwLed Class Reference</title>
  <link href="classic-4.6.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">wwWidgets Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230">
<a href="http://www.wysota.eu.org/wwwidgets"><img src="images/ww-logo.png" align="right" width="137" height="41" border="0" /></a>
</td></tr></table><h1 class="title">QwwLed Class Reference<br /><span class="small-subtitle">[<a href="wwwidgets.html">wwWidgets</a> module]</span>
</h1>
<p>The QwwLed class provides a widget that displays a LED. <a href="#details">More...</a></p>
<pre> #include &lt;QwwLed&gt;</pre><p><b>This class is not part of the Qt GUI Framework Edition.</b></p>
<p>Inherits <a href="http://qt.nokia.com/doc/4.7/qwidget.html">QWidget</a>.</p>
<ul>
<li><a href="qwwled-members.html">List of all members, including inherited members</a></li>
</ul>
<hr />
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><b><a href="qwwled.html#Shape-enum">Shape</a></b> { Circular, RectangularSunken, RectangularRaised, RectangularPlain }</td></tr>
</table>
<hr />
<a name="properties"></a>
<h2>Properties</h2>
<p><table class="propsummary" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td width="45%" valign="top"><ul>
<li><div class="fn"><b><a href="qwwled.html#animated-prop">animated</a></b> : bool</div></li>
<li><div class="fn"><b><a href="qwwled.html#checked-prop">checked</a></b> : bool</div></li>
<li><div class="fn"><b><a href="qwwled.html#color-prop">color</a></b> : QColor</div></li>
</ul></td><td valign="top"><ul>
<li><div class="fn"><b><a href="qwwled.html#frameWidth-prop">frameWidth</a></b> : int</div></li>
<li><div class="fn"><b><a href="qwwled.html#period-prop">period</a></b> : int</div></li>
<li><div class="fn"><b><a href="qwwled.html#shape-prop">shape</a></b> : Shape</div></li>
</ul>
</td></tr>
</table></p>
<ul>
<li><div bar="2" class="fn"></div>58 properties inherited from <a href="http://qt.nokia.com/doc/4.7/qwidget.html#properties">QWidget</a></li>
<li><div bar="2" class="fn"></div>1 property inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#properties">QObject</a></li>
</ul>
<hr />
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qwwled.html#QwwLed">QwwLed</a></b> ( QWidget * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qwwled.html#QwwLed-2">QwwLed</a></b> ( const QColor &amp; <i>col</i>, Shape <i>shap</i> = Circular, QWidget * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QColor </td><td class="memItemRight" valign="bottom"><b><a href="qwwled.html#color-prop">color</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="qwwled.html#frameWidth-prop">frameWidth</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qwwled.html#animated-prop">isAnimated</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qwwled.html#checked-prop">isChecked</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b><a href="qwwled.html#period-prop">period</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Shape </td><td class="memItemRight" valign="bottom"><b><a href="qwwled.html#shape-prop">shape</a></b> () const</td></tr>
</table>
<ul>
<li><div bar="2" class="fn"></div>217 public functions inherited from <a href="http://qt.nokia.com/doc/4.7/qwidget.html#public-functions">QWidget</a></li>
<li><div bar="2" class="fn"></div>13 public functions inherited from <a href="http://qt.nokia.com/doc/4.7/qpaintdevice.html#public-functions">QPaintDevice</a></li>
<li><div bar="2" class="fn"></div>29 public functions inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#public-functions">QObject</a></li>
</ul>
<hr />
<a name="public-slots"></a>
<h2>Public Slots</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qwwled.html#blink">blink</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qwwled.html#animated-prop">setAnimated</a></b> ( bool )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qwwled.html#checked-prop">setChecked</a></b> ( bool <i>v</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qwwled.html#color-prop">setColor</a></b> ( const QColor &amp; <i>c</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qwwled.html#frameWidth-prop">setFrameWidth</a></b> ( int <i>w</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qwwled.html#period-prop">setPeriod</a></b> ( int )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qwwled.html#shape-prop">setShape</a></b> ( Shape <i>s</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qwwled.html#toggle">toggle</a></b> ()</td></tr>
</table>
<ul>
<li><div bar="2" class="fn"></div>19 public slots inherited from <a href="http://qt.nokia.com/doc/4.7/qwidget.html#public-slots">QWidget</a></li>
<li><div bar="2" class="fn"></div>1 public slot inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#public-slots">QObject</a></li>
</ul>
<hr />
<a name="signals"></a>
<h2>Signals</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qwwled.html#clicked">clicked</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qwwled.html#colorChanged">colorChanged</a></b> ( const QColor &amp; <i>color</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qwwled.html#toggled">toggled</a></b> ( bool <i>checked</i> )</td></tr>
</table>
<ul>
<li><div bar="2" class="fn"></div>1 signal inherited from <a href="http://qt.nokia.com/doc/4.7/qwidget.html#signals">QWidget</a></li>
<li><div bar="2" class="fn"></div>1 signal inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#signals">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li><div class="fn"></div>1 public type inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#public-variables">QObject</a></li>
<li><div class="fn"></div>4 static public members inherited from <a href="http://qt.nokia.com/doc/4.7/qwidget.html#static-public-members">QWidget</a></li>
<li><div class="fn"></div>4 static public members inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#static-public-members">QObject</a></li>
<li><div class="fn"></div>37 protected functions inherited from <a href="http://qt.nokia.com/doc/4.7/qwidget.html#protected-functions">QWidget</a></li>
<li><div class="fn"></div>1 protected function inherited from <a href="http://qt.nokia.com/doc/4.7/qpaintdevice.html#protected-functions">QPaintDevice</a></li>
<li><div class="fn"></div>7 protected functions inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#protected-functions">QObject</a></li>
<li><div class="fn"></div>1 protected slot inherited from <a href="http://qt.nokia.com/doc/4.7/qwidget.html#protected-slots">QWidget</a></li>
<li><div class="fn"></div>1 protected type inherited from <a href="http://qt.nokia.com/doc/4.7/qpaintdevice.html#protected-variables">QPaintDevice</a></li>
<li><div class="fn"></div>2 protected variables inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#protected-variables">QObject</a></li>
</ul>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>The QwwLed class provides a widget that displays a LED.</p>
<p align="center"><img src="images/qwwled.png" /></p><hr />
<h2>Member Type Documentation</h2>
<h3 class="fn"><a name="Shape-enum"></a>enum QwwLed::Shape</h3>
<p><table class="valuelist" border="1" cellpadding="2" cellspacing="1" width="100%">
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
<tr><td valign="top"><tt>QwwLed::Circular</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">round LED</td></tr>
<tr><td valign="top"><tt>QwwLed::RectangularSunken</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">rectangular LED with sunken appearance</td></tr>
<tr><td valign="top"><tt>QwwLed::RectangularRaised</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">rectangular LED with raised appearence</td></tr>
<tr><td valign="top"><tt>QwwLed::RectangularPlain</tt></td><td align="center" valign="top"><tt>3</tt></td><td valign="top">rectangular flat LED</td></tr>
</table></p>
<hr />
<h2>Property Documentation</h2>
<h3 class="fn"><a name="animated-prop"></a>animated : bool</h3>
<p>This property holds property keeping information whether the diode is animating.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b>isAnimated</b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b>setAnimated</b> ( bool )</td></tr>
</table>
<h3 class="fn"><a name="checked-prop"></a>checked : bool</h3>
<p>This property holds property keeping information whether the led is turned on.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b>isChecked</b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b>setChecked</b> ( bool <i>v</i> )</td></tr>
</table>
<h3 class="fn"><a name="color-prop"></a>color : <a href="http://qt.nokia.com/doc/4.7/qcolor.html">QColor</a></h3>
<p>This property holds this property holds the colour of the diode.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">QColor </td><td class="memItemRight" valign="bottom"><b>color</b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b>setColor</b> ( const QColor &amp; <i>c</i> )</td></tr>
</table>
<h3 class="fn"><a name="frameWidth-prop"></a>frameWidth : int</h3>
<p>This property holds the width of led's frame.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b>frameWidth</b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b>setFrameWidth</b> ( int <i>w</i> )</td></tr>
</table>
<h3 class="fn"><a name="period-prop"></a>period : int</h3>
<p>This property holds blink period of the diode.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><b>period</b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b>setPeriod</b> ( int )</td></tr>
</table>
<h3 class="fn"><a name="shape-prop"></a>shape : <a href="qwwled.html#Shape-enum">Shape</a></h3>
<p>This property holds this property holds the shape of the diode.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">Shape </td><td class="memItemRight" valign="bottom"><b>shape</b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b>setShape</b> ( Shape <i>s</i> )</td></tr>
</table>
<hr />
<h2>Member Function Documentation</h2>
<h3 class="fn"><a name="QwwLed"></a>QwwLed::QwwLed ( <a href="http://qt.nokia.com/doc/4.7/qwidget.html">QWidget</a> * <i>parent</i> = 0 )</h3>
<p>Constructs a led widget with a given <i>parent</i>.</p>
<h3 class="fn"><a name="QwwLed-2"></a>QwwLed::QwwLed ( const <a href="http://qt.nokia.com/doc/4.7/qcolor.html">QColor</a> &amp; <i>col</i>, <a href="qwwled.html#Shape-enum">Shape</a> <i>shap</i> = Circular, <a href="http://qt.nokia.com/doc/4.7/qwidget.html">QWidget</a> * <i>parent</i> = 0 )</h3>
<p>Constructs a led widget of colour <i>col</i> and shape <i>shap</i> with a given <i>parent</i>.</p>
<h3 class="fn"><a name="blink"></a>void QwwLed::blink ()&nbsp;&nbsp;<tt> [slot]</tt></h3>
<p>Blinks the diode once.</p>
<h3 class="fn"><a name="clicked"></a>void QwwLed::clicked ()&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>Signal emitted when the diode is clicked</p>
<h3 class="fn"><a name="colorChanged"></a>void QwwLed::colorChanged ( const <a href="http://qt.nokia.com/doc/4.7/qcolor.html">QColor</a> &amp; <i>color</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>Signal emitted when the color of the diode is changed to <i>color</i>.</p>
<h3 class="fn"><a name="toggle"></a>void QwwLed::toggle ()&nbsp;&nbsp;<tt> [slot]</tt></h3>
<p>Toggles the diode on or off.</p>
<h3 class="fn"><a name="toggled"></a>void QwwLed::toggled ( bool <i>checked</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>Signal emitted when the diode is toggled.</p>
<p><i>checked</i> carries the information about the current state of the diode.</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%" align="left">Copyright &copy; 2007-2010 Witold Wysota 
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">wwWidgets 1.0.0</div></td>
</tr></table></div></address></body>
</html>
